package by.bucha.testproject.app;

import by.bucha.testproject.R;
import by.bucha.testproject.adapters.FullScreenImageAdapter;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;

public class FullScreenImageActivity extends FragmentActivity {

	public FullScreenImageActivity() {
	}

	private ViewPager mViewPager;

	private FullScreenImageAdapter mAdapter;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		// fragment in fragment is not supported in v4 it is supported in
		// support-v13 library thats why i can't create view pager in tab
		// content, or I just don't know how =(
		setContentView(R.layout.activity_full_screen_image);

		mViewPager = (ViewPager) findViewById(R.id.activity_full_screen_image_view_pager);

		mAdapter = new FullScreenImageAdapter(getSupportFragmentManager());
		mViewPager.setAdapter(mAdapter);

	}

}
